<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/5/19
  Time: 1:53
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<jsp:useBean id="loginUser" type="com.model.User" scope="session"></jsp:useBean>

<html>
<head>
    <title>文件上传</title>
</head>
<body>
<p>你好,
    <jsp:getProperty name="loginUser" property="username"/>
    <br>${message}</p>
<hr>
<form action="fileUpload.do" method="post" enctype="multipart/form-data">
    <table>
        <tr>
            <td colspan="2" align="center">文件上传</td>
        </tr>
        <tr>
            <td>目录名：</td>
            <td>
                <input type="text" name="dirName" value=
                        <jsp:getProperty name="loginUser" property="username"/>
                />
            </td>
        </tr>
        <tr>
            <td>文件名：</td>
            <td>
                <input type="file" name="file"/>
            </td>
        </tr>
        <tr>
            <td>
                <input type="submit" value="上传文件">
                <input type="reset" value="重置">
            </td>
        </tr>
    </table>
</form>
<hr>
<p><a href="menu.jsp">返回菜单</a></p>
</body>
</html>
